/*
 * Copyright (C) 2010-2010 MaoJian Wu
 *
 * Author:
 *	MaoJian Wu
 *
 * Source:
 *	
 *
 * This file is a part of zfspear library.
 *
 *
 */
#include <QtTest/QtTest>
#include "test_xmpp_client_connection.h"
#include "xmpp_client_connection.h"
TestXmppClientConnection::TestXmppClientConnection(QObject *parent) :
    QObject(parent)
{
}
void TestXmppClientConnection::toConnectToServerTest() {

   bool check=this->connect(&xmppClientConnection_,SIGNAL(HostFound()),SLOT(HostFound()));
   check = QObject::connect(&xmppClientConnection_, SIGNAL(Connected()), this, SLOT(HostFound()));
   Q_ASSERT(check);
   //"talk.google.com", "qxmpp.test1", "qxmpp123", "gmail.com"
   xmppClientConnection_.ConnectToServer("talk.google.com", "mypike@gmail.com", "mypikeamomypike", "gmail.com");
}
void TestXmppClientConnection::HostFound() {



}


//QTEST_MAIN(TestXmppClientConnection);
